<#include "/common/layout.html"> 
<@layout>
<script type="text/javascript" src="/js/easyui/easyui_grid.js"></script>
<script type="text/javascript">
var model_name = "/product";
var model_title="商品";
var datagrid;
	$(function() {
		datagrid=$('#form_datagrid').datagrid({
		 	url:model_name+'/grid',
		 	columns:[[    
		        {field:'id',title:'编号',width:100,checkbox:true},
		        {field:'product_type_name',title:'商品类别'},
		        {field:'name',title:'商品名称'},
		        {field:'old_price',title:'原价(元)'},
		        {field:'now_price',title:'现价(元)'},
		        {field:'logo',title:'商品lolo',width:210,
		        formatter:function(value,row,index){
		        	if(value)
		        	return "<span url='"+value+"' style='cursor:pointer;color:blue;'  onmouseover='hoverShow(this);'onmouseout='$(\"#imgShow\").hide();'>"+value+"</span>";
		        }},
		        {field:'visit_num',title:'点击次数',align:'right'},
		        {field:'seq',title:'排序'},
		        {field:'buy_num',title:'购买次数',align:'right'},
		        {field:'create_time',title:'创建时间',align:'right'}
		    ]]
		});
		
	})
</script>
<script type="text/javascript" src="/js/easyui/easyui_grid_common.js"></script>
</head>
<#include "/common/seach.html" />
<@seach>
<td>商品名</td>
<td><input type="text" name="seachLike_product.name"></td>
<td>类别名</td>
<td><input type="text" name="seachLike_product_type.name"></td>

</@seach>
</@layout>